import request from '@/utils/request'

// 查询组态工艺列表
export function listDispatchConfiguration(query) {
  return request({
    url: '/system/dispatchConfiguration/list',
    method: 'get',
    params: query
  })
}

// 查询组态工艺详细
export function getDispatchConfiguration(configurationId) {
  return request({
    url: '/system/dispatchConfiguration/' + configurationId,
    method: 'get'
  })
}

// 新增组态工艺
export function addDispatchConfiguration(data) {
  return request({
    url: '/system/dispatchConfiguration',
    method: 'post',
    data: data
  })
}

// 修改组态工艺
export function updateDispatchConfiguration(data) {
  return request({
    url: '/system/dispatchConfiguration',
    method: 'put',
    data: data
  })
}

// 删除组态工艺
export function delDispatchConfiguration(configurationId) {
  return request({
    url: '/system/dispatchConfiguration/' + configurationId,
    method: 'delete'
  })
}
